/** -*- mode: c++ -*-
 *      2007-11-10 Duzy Chan<duzy@duzy.info>
 */

#include <yisc/gui/window.hpp>
#include <iostream>
#include "win32/window.hpp"
#include <cstdlib>

int main(int argc, char** argv)
// int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
//                    LPSTR lpCmdLine, int nCmdShow)
{
  yisc::gui::window_ptr win = yisc::gui::window::make_window();
  yisc::gui::win32::window::module_instance( ::GetModuleHandle(NULL) );

  assert( win->create() );

  win->show();
  win->update();
  std::cout<<"test"<<std::endl;

  //sleep( 5 );
  win->message_loop();
  
  return EXIT_SUCCESS;
}
